home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / omniORB-2.5.0-src.tar.gz / omniORB-2.5.0-src.tar / omniORB_2.5.0 / include / omniORB2 / IIOP.h < prev    next >
C/C++ Source or Header  |  1997-12-09  |  2KB  |  74 lines

  1. // -*- Mode: C++; -*-
  2. //                            Package   : omniORB2
  3. // IIOP.h                     Created on: 8/2/96
  4. //                            Author    : Sai Lai Lo (sll)
  5. //
  6. //    Copyright (C) 1996, 1997 Olivetti & Oracle Research Laboratory
  7. //
  8. //    This file is part of the omniORB library
  9. //
  10. //    The omniORB library is free software; you can redistribute it and/or
  11. //    modify it under the terms of the GNU Library General Public
  12. //    License as published by the Free Software Foundation; either
  13. //    version 2 of the License, or (at your option) any later version.
  14. //
  15. //    This library is distributed in the hope that it will be useful,
  16. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18. //    Library General Public License for more details.
  19. //
  20. //    You should have received a copy of the GNU Library General Public
  21. //    License along with this library; if not, write to the Free
  22. //    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
  23. //    02111-1307, USA
  24. //
  25. //
  26. // Description:
  27. //       C++ mapping of the OMG IIOP module
  28. //       Reference: CORBA V2.0 12.8.2
  29. //    
  30. //    
  31.  
  32. /*
  33.   $Log: IIOP.h,v $
  34.   Revision 1.6  1997/12/09 20:39:38  sll
  35.   Removed profileToEncapStream and EncapStreamToProfile.
  36.  
  37.   Revision 1.5  1997/08/21 22:21:19  sll
  38.   ProfileBody now has a dtor to deallocate the storage for the host field.
  39.  
  40.  * Revision 1.4  1997/05/06  16:06:55  sll
  41.  * Public release.
  42.  *
  43.  */
  44.  
  45. #ifndef __IIOP_H__
  46. #define __IIOP_H__
  47.  
  48. class _OMNIORB2_NTDLL_ IIOP {
  49.  
  50.   public:
  51.  
  52.   struct Version { 
  53.     _CORBA_Char major;
  54.     _CORBA_Char minor; 
  55.   };
  56.  
  57.   // Current IIOP Protocol version
  58.   static const _CORBA_Char current_major;
  59.   static const _CORBA_Char current_minor;
  60.  
  61.   struct ProfileBody {
  62.     Version                 iiop_version;
  63.     _CORBA_Char*            host;       // deleted by dtor
  64.     _CORBA_UShort           port;
  65.     _CORBA_Unbounded_Sequence_Octet  object_key;
  66.  
  67.     ~ProfileBody() { if (host) delete [] host; }
  68.   };
  69.  
  70. };
  71.  
  72.  
  73. #endif // __IIOP_H__
  74.